<?php
echo form_open('admin/product/addProduct',array('class'=>'form-horizontal'));
?>
<div class="addform">
    <div class="thongbao">
        <?php if($error) foreach($error as $ele):?>
        <div class="alert alert-error fade in"><?php echo $ele ?><a class="close" data-dismiss="alert">&times;</a></div>
        <?php endforeach;?>
        <?php if($success) {?>
        <div class="alert alert-success fade in"><?php echo $success ?><a class="close" data-dismiss="alert">&times;</a></div>
        <?php }?>
    </div>
    <div class="control-group">
        <label class="control-label">Tên sản phẩm</label>
        <div class="controls">
            <?php echo form_input('pro_name')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Phân loại</label>
        <div class="controls">
            <?php echo form_input('pro_cat_id')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="appendedInput">Giá</label>
        <div class="controls">
            <div class="input-append">
                <?php echo form_input('pro_price','','class="input-small"') ?><span class="add-on">VNĐ</span>
            </div>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Kích thước</label>
        <div class="controls">
            <?php echo form_input('pro_size')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Sản phẩm nổi bật</label>
        <div class="controls">
            <?php echo form_checkbox('pro_hot',1,TRUE)?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Mô tả ngắn</label>
        <div class="controls">
            <?php echo form_textarea('pro_summary','','class="textareaSummary"')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Mô tả</label>
        <div class="controls">
            <?php echo form_textarea('pro_description','','class="textareaContent"')?>
        </div>
        <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
			<script type="text/javascript">
			//<![CDATA[

				// This call can be placed at any point after the
				// <textarea>, or inside a <head><script> in a
				// window.onload event handler.

				// Replace the <textarea id="editor"> with an CKEditor
				// instance, using default configurations.
				CKEDITOR.replace( 'editor1' );

			//]]>
			</script>
    </div>
    <div class="form-actions">
        <button type="submit" name="action" class="btn btn-primary">Thêm mới</button>
        <button class="btn">Huỷ bỏ</button>
    </div>
</div>
<?php echo form_close() ?>